<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>回文</title>
</head>
<body>
<script>
    var i="jh52j";
    function isPalindrome(line) {
        line += "";
        for(var i=0,j=line.length-1;i<j;i++,j--){
            if(line.charAt(i) !== line.charAt(j)){
                return false;
            }
        }
        return true;
    }
    console.log(isPalindrome(i));
</script>
</body>
</html>